﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="false" CodeBehind="CustomerDetailEdit.aspx.vb" Inherits="ACompany.OrderProcessing.UI.MVCWeb.CustomerDetailEdit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<%= Html.ValidationSummary("Please correct the errors and try again.") %>
<h2>Edit Customer</h2>
<%  Using Html.BeginForm()%>

<fieldset>
<p>
Name:
<%=Html.TextBox("Name", ViewData.Model.Name)%>
<%=Html.ValidationMessage("Name", "*")%>
</p>
<p>
Email:
<%=Html.TextBox("Email", ViewData.Model.Email)%>
<%=Html.ValidationMessage("Email", "*")%>
</p>
<h3>Address</h3>
<%=Html.ValidationMessage("Address", "*")%>
<p>
Street: 
<%=Html.TextBox("Street", ViewData.Model.Address.Street)%>
</p>
<p>
City: 
<%=Html.TextBox("City", ViewData.Model.Address.City)%>
</p>
<p>
County: 
<%=Html.TextBox("County", ViewData.Model.Address.County)%>
</p>
<p>
PostCode: 
<%=Html.TextBox("PostCode", ViewData.Model.Address.PostCode)%>
</p>

<p>
<input type="submit" value="Save" />
</p>
</fieldset>
<% End Using %>

</asp:Content>
